package com.yst.sqlbuilder.mathExpression;

import com.yst.lambda.TableFieldFunc;

public class AvgFieldExpression<T> extends FieldExpression<T>{
    public AvgFieldExpression(TableFieldFunc<T,?> field, String alias) {
        super(field, alias);
    }
    @Override
    protected String formatField(String field) {
        return String.format("AVG(%s)",field);
    }
}
